-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting polling interval for httpClient #183
Allow setting polling interval for httpClient #183
Conversation
client/types/startsettings.go
Outdated
|
||
// Optional PollingIntervalMs to configure the polling interval for http client | ||
// if nil uses the default polling interval else uses this value. | ||
PollingIntervalMs *time.Duration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StartSettings
contains settings that are all applicable both to httpClient and to wsClient. This new setting will be only applicable to httpClient and it will be confusing.
An alternate approach is to make this a method on httpClient, e.g.:
func (h *httpClient) SetPollingInterval(duration time.Duration)
This can be called anytime to set the next polling interval.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #183 +/- ##
==========================================
+ Coverage 76.11% 76.49% +0.38%
==========================================
Files 24 24
Lines 1834 1868 +34
==========================================
+ Hits 1396 1429 +33
- Misses 326 327 +1
Partials 112 112
☔ View full report in Codecov by Sentry. |
Thank you @phanidevavarapu |
Resolves #176